// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Permissive License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.


using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;

public partial class WePETMaster_Default : MasterPage, IContentPlaceHolders
{
    public IList GetContentPlaceHolders()
    {
        return ContentPlaceHolders;
    }

    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);
        WebPartManager manager = WebPartManager.GetCurrentWebPartManager(Page);
        WebpartPropertiesPanel.Visible = (manager.DisplayMode == WebPartManager.EditDisplayMode);

        EditorPropHelp.Visible = manager.SelectedWebPart == null;
        WebPartControlPanel.Visible = manager.Zones.Count > 0;

    }
}